package com.dx.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "wx.pay")
public class WeChatProperties {
    /**
     * 微信服务号APPID
     */
    public static String appId;
    /**
     * 微信支付的商户号
     */
    public static String mchId;
    /**
     * 微信支付的API密钥
     */
    public static String apiKey;
    /**
     * 微信支付成功之后的回调地址【注意：当前回调地址必须是公网能够访问的地址】
     */
    public static String weChat_notify_url_pc;
    /**
     * 微信统一下单API地址
     */
    public static String ufdoderUrl;
    /**
     * 支付类型
     */
    public static String tradeType;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        WeChatProperties.appId = appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        WeChatProperties.mchId = mchId;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        WeChatProperties.apiKey = apiKey;
    }

    public String getWeChat_notify_url_pc() {
        return weChat_notify_url_pc;
    }

    public void setWeChat_notify_url_pc(String weChat_notify_url_pc) {
        WeChatProperties.weChat_notify_url_pc = weChat_notify_url_pc;
    }

    public String getUfdoderUrl() {
        return ufdoderUrl;
    }

    public void setUfdoderUrl(String ufdoderUrl) {
        WeChatProperties.ufdoderUrl = ufdoderUrl;
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        WeChatProperties.tradeType = tradeType;
    }
}